package com.aaa.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 荆豪峰
 * @version 1.0
 */
@Component
public class MyQuartz {
    @Scheduled(cron = "0,2 * * * * ? ")
       public void test01() {
           System.out.println("sssssssss");
       }
}
